package com.sxhalo.manage.map;

/**
 * SysModuleOperationId entity. @author MyEclipse Persistence Tools
 */

public class SysModuleOperationId implements java.io.Serializable {

	// Fields

	private Integer moduleId;
	private Integer operationId;

	// Constructors

	/** default constructor */
	public SysModuleOperationId() {
	}

	/** full constructor */
	public SysModuleOperationId(Integer moduleId, Integer operationId) {
		this.moduleId = moduleId;
		this.operationId = operationId;
	}

	// Property accessors

	public Integer getModuleId() {
		return this.moduleId;
	}

	public void setModuleId(Integer moduleId) {
		this.moduleId = moduleId;
	}

	public Integer getOperationId() {
		return this.operationId;
	}

	public void setOperationId(Integer operationId) {
		this.operationId = operationId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SysModuleOperationId))
			return false;
		SysModuleOperationId castOther = (SysModuleOperationId) other;

		return ((this.getModuleId() == castOther.getModuleId()) || (this
				.getModuleId() != null && castOther.getModuleId() != null && this
				.getModuleId().equals(castOther.getModuleId())))
				&& ((this.getOperationId() == castOther.getOperationId()) || (this
						.getOperationId() != null
						&& castOther.getOperationId() != null && this
						.getOperationId().equals(castOther.getOperationId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getModuleId() == null ? 0 : this.getModuleId().hashCode());
		result = 37
				* result
				+ (getOperationId() == null ? 0 : this.getOperationId()
						.hashCode());
		return result;
	}

}